package cn.tedu.sims.service;

import cn.tedu.sims.pojo.dto.*;
import cn.tedu.sims.pojo.entity.Project;
import cn.tedu.sims.pojo.vo.ProjectInformationVO;
import cn.tedu.sims.pojo.vo.ProjectReportTypeVO;
import cn.tedu.sims.pojo.vo.ProjectVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IProjectService {
    void addNew(ProjectAndProjectInformationDTO projectAndProjectInformationDTO);
    List<ProjectVO> projectList(String reportTye);

    void deleteById(Long id);
    List<ProjectVO> selectByYear(ProjectYearDTO projectYearDTO);
    ProjectVO selectById (Long id);

    void deleteByIds(Long[] id);

    void stateOkById(long id);

    void stateFailById(long id);

    void update(Project project);

    ProjectInformationVO getProjectInformationVOByProjectId(Long projectId);

    void addNewProjectReject(ProjectRejectDTO projectRejectDTO);
    String getRejectMessageByProjectId(int projectId);

    ProjectVO getProject(long projectId);

    ProjectReportTypeVO selectCountByType();
    String[] selectPass();

    List<ProjectVO> selectByAudit();
}
